Abort the current case and continue a case into the next case in a Select or Switch block.
ContinueCase
Parameters
None.
Remarks
Normally in a Select or Switch block, a case ends when the next Case statement is encountered. Executing the ContinueCase will tell AutoIt to stop executing the current case and start executing the next case.
Related
Select...EndSelect, Switch...EndSwitch
Example
$msg = ""
$szName = InputBox(Default, "Please enter a word.", "", " M", Default, Default, Default, Default, 10)
Switch @error
Case 2
$msg = "Timeout "
ContinueCase
Case 1; Continuing previous case
$msg &= "Cancellation"
Case 0
Switch $szName
Case "a", "e", "i", "o", "u"
$msg = "Vowel"
Case "QP"
$msg = "Mathematics"
Case "Q" to "QZ"
$msg = "Science"
Case Else
$msg = "Others"
EndSwitch
Case Else
$msg = "Something went horribly wrong."
EndSwitch
MsgBox(0, Default, $msg)